home *** CD-ROM | disk | FTP | other *** search
-
-
-
- RRRRLLLLEEEELLLLDDDDMMMMAAAAPPPP((((1111)))) 1111 ((((NNNNoooovvvv 11112222,,,, 1111999988886666)))) RRRRLLLLEEEELLLLDDDDMMMMAAAAPPPP((((1111))))
-
-
-
- NNNNAAAAMMMMEEEE
- rleldmap - Load a new color map into an RLE file
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- rrrrlllleeeellllddddmmmmaaaapppp [ ----{{{{aaaabbbb}}}} ] [ ----nnnn _n_c_h_a_n _l_e_n_g_t_h ] [ ----ssss _b_i_t_s ] [ ----llll [
- _f_a_c_t_o_r ] ] [ ----gggg _g_a_m_m_a ] [ ----{{{{ttttffff}}}} _f_i_l_e ] [ ----mmmm _f_i_l_e_s ... ] [ ----rrrr
- _r_l_e_f_i_l_e ] [ ----oooo _o_u_t_f_i_l_e ] [ _i_n_f_i_l_e ]
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- The program will load a specified color map into an _R_L_E(5)
- file. The color map may be computed by _r_l_e_l_d_m_a_p or loaded
- from a file in one of several formats. The input is read
- from _i_n_f_i_l_e or stdin if no file is given, and the result is
- written to _o_u_t_f_i_l_e or stdout.
-
- The following terms are used in the description of the
- program and its options:
-
- input map:
- A color map already in the input RLE file.
-
- applied map:
- The color map specified by the arguments to _r_l_e_l_d_m_a_p.
- This map will be applied to or will replace the input
- map to produce the output map.
-
- output map:
- Unless ----aaaa or ----bbbb is specified, this is equal to the
- applied map. Otherwise it will be the composition of
- the input and applied maps.
-
- map composition:
- If the applied map is composed _a_f_t_e_r the input map,
- then the output map will be _a_p_p_l_i_e_d _m_a_p[_i_n_p_u_t _m_a_p].
- Composing the applied map before the input map produces
- an output map equal to _i_n_p_u_t _m_a_p[_a_p_p_l_i_e_d _m_a_p]. The
- maps being composed must either have the same number of
- channels, or one of them must have only one channel.
- If an entry in the map being used as a subscript is
- larger than the length of the map being subscripted,
- the output value is equal to the subscript value. The
- output map will be the same length as the subscript map
- and will have the number of channels that is the larger
- of the two. If the input map is used as a subscript,
- it will be downshifted the correct number of bits to
- serve as a subscript for the applied map (since the
- color map in an _R_L_E(5) file is always stored left
- justified in 16 bit words). This also applies to the
- applied map if it is taken from an _R_L_E(5) file (----rrrr
- option below). Note that if there is no input map,
- that the result of composition will be exactly the
- applied map.
-
-
-
- Page 1 (printed 12/1/98)
-
-
-
-
-
-
- RRRRLLLLEEEELLLLDDDDMMMMAAAAPPPP((((1111)))) 1111 ((((NNNNoooovvvv 11112222,,,, 1111999988886666)))) RRRRLLLLEEEELLLLDDDDMMMMAAAAPPPP((((1111))))
-
-
-
- nchan:
- The number of separate lookup tables (channels) making
- up the color map. This defaults to 3.
-
- length:
- The number of entries in each channel of the color map.
- The default is 256.
-
- bits:
- The size of each color map entry in bits. The default
- value is the log base 2 of the length.
-
- range:
- The maximum value of a color map entry, equal to
- 2**bits - 1.
-
- OOOOPPPPTTTTIIIIOOOONNNNSSSS
- ----aaaa Compose the applied map _a_f_t_e_r the input map.
-
- ----bbbb Compose the applied map _b_e_f_o_r_e the input map. Only one
- of ----aaaa or ----bbbb may be specified.
-
- ----nnnn _n_c_h_a_n _l_e_n_g_t_h
- Specify the size of the applied map if it is not 3x256.
- The _l_e_n_g_t_h should be a power of two, and will be
- rounded up if necessary. If applying the map _n_c_h_a_n
- must be either 1 or equal to the number of channels in
- the input map. It may have any value if the input map
- has one channel or is not present.
-
- ----ssss _b_i_t_s
- Specify the size in bits of the color map entries.
- I.e., only the top _b_i_t_s bits of each color map entry
- will be set.
-
- Exactly one of the options ----llll, ----gggg, ----tttt, ----ffff, ----mmmm, or ----rrrr,
- must be specified.
-
- ----llll _f_a_c_t_o_r
- Generate a linear applied map with the _n_t_h entry equal
- to
- _r_a_n_g_e * _m_i_n(_1._0, _f_a_c_t_o_r*(_n/(_l_e_n_g_t_h-_1))).
- _F_a_c_t_o_r defaults to 1.0 if not specified. Negative
- values of _f_a_c_t_o_r will generate a map with values equal
- to
- _r_a_n_g_e * _m_a_x(_0._0, _1._0 -
- _f_a_c_t_o_r*(_n/(_l_e_n_g_t_h-_1))).
-
- ----gggg _g_a_m_m_a
- Generate an applied map to compensate for a display
- with the given gamma. The _n_t_h entry is equal to
- _r_a_n_g_e * (_n/(_l_e_n_g_t_h-_1))**(_1/_g_a_m_m_a).
-
-
-
- Page 2 (printed 12/1/98)
-
-
-
-
-
-
- RRRRLLLLEEEELLLLDDDDMMMMAAAAPPPP((((1111)))) 1111 ((((NNNNoooovvvv 11112222,,,, 1111999988886666)))) RRRRLLLLEEEELLLLDDDDMMMMAAAAPPPP((((1111))))
-
-
-
- ----tttt _f_i_l_e
- Read color map entries from a table in a text file.
- The values for each channel of a particular entry
- follow each other in the file. Thus, for an RGB color
- map, the file would look like:
- red0 green0 blue0
- red1 green1 blue1
- ... ... ...
- Line breaks in the input file are irrelevant.
-
- ----ffff _f_i_l_e
- Reads the applied map from a text file, with all the
- entries for each channel following each other. Thus,
- the input file above would appear as
- red0 red1 red2 ... (_l_e_n_g_t_h values)
- green0 green1 green2 ... (_l_e_n_g_t_h values)
- blue0 blue1 blue2 ... (_l_e_n_g_t_h values)
- As above, line breaks are irrelevant.
-
- ----mmmm _f_i_l_e_s ...
- Read the color map for each channel from a separate
- file. The number of files specified must equal the
- number of channels in the applied map. (Note: the list
- of files must be followed by another flag argument or
- by the null flag -------- to separate it from the _i_n_f_i_l_e
- specification.
-
- ----oooo _o_u_t_f_i_l_e
- The output will be written to the file _o_u_t_f_i_l_e if this
- option is specified. Otherwise the output will go to
- _s_t_d_o_u_t.
-
- _i_n_f_i_l_e
- The input will be taken from this file if specified.
- Otherwise, the input will be read from _s_t_d_i_n.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _a_p_p_l_y_m_a_p(1), _u_r_t(1), _R_L_E(5).
-
- AAAAUUUUTTTTHHHHOOOORRRR
- Spencer W. Thomas, University of Utah
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3 (printed 12/1/98)
-
-
-
-